"""
@name : 10-22 数据类型作业hejin
@author : hj
@projectname: CJH
"""

a = "字符串拼接1"
b = "字符串拼接2"
print("方式1：" + a + b)
print("方式2：%s%s" % (a, b))
print(f"方式3：{a}{b}")
print("方式4：{0}{1}".format(a, b))

c = a + b
print("新拼接的字符串长度为：", len(c))
print("第七个字符为：", c[6])

str1 = "8*y*cali*china**it*soft*linux*python"
count = str1.count("*")
list = str1.split("*")
str2 = "".join(list)
print("*" * count + str2)
